﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;

namespace PSI.Models
{
    public class BaseCodeColumnMatedata
    {
        /// <summary>
        /// 列属性ID
        /// </summary>
        [JsonProperty("columnId")]
        public string ColumnId { get; set; }

        /// <summary>
        /// 原数据表ID 
        /// </summary>
        [JsonProperty("basecodeId")]
        public string BasecodeId { get; set; }

        /// <summary>
        /// 字段介绍用途
        /// </summary>
        [JsonProperty("columnTitle")]
        public string ColumnTitle { get; set; }

        /// <summary>
        /// 字段名称
        /// </summary>
        [JsonProperty("columnName")]
        public string ColumnName { get; set; }

        /// <summary>
        /// 字段类型 int date varchar flout
        /// </summary>
        [JsonProperty("columnType")]
        public string ColumnType { get; set; }

        /// <summary>
        /// 字段长度 varchar (50) int data 这些都是0
        /// </summary>
        [JsonProperty("columnLength")]
        public int ColumnLength { get; set; }

        /// <summary>
        /// 默认值
        /// </summary>
        [JsonProperty("defultValue")]
        public string DefualtValue { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [JsonProperty("showOrder")]
        public int ShowOrder { get; set; }

        /// <summary>
        /// 是否显示 1显示 0不显示
        /// </summary>
        [JsonProperty("isVisible")]
        public int IsVisible { get; set; }

        /// <summary>
        /// 显示格式
        /// </summary>
        [JsonProperty("displayFmt")]
        public string DisplayFmt { get; set; }
    }
}